package siga.controle;

import java.io.*;

public class Validar {
	public boolean verificaLogin(String login) throws IOException {
		FileReader fr = new FileReader("cadastroAlunos.txt");
		BufferedReader br = new BufferedReader(fr);
		String linha;
		String[] campos;
		while((linha = br.readLine()) != null) {
			campos = linha.split("\\|");
			if (campos[2].equals(login)){
				return true;
			}
		}
		return false;
	}
}
